package cn.t.enums.order;

import cn.t.core.enums.Enumer;
import cn.t.core.enums.base.CommonEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Enumer
@Getter
@AllArgsConstructor
public enum WorkStatusEnum implements CommonEnum<Integer, String> {
    // 状态（0.待审批、1.待办、2.已完成、3.部分完成、4.已取消 、5.已拒绝）
    EXPIRED(-1, "已过期"),
    WAIT_APPROVAL(0, "待审批"),
    WAIT_DO(1, "待办"),
    COMPLETED(2, "已完成"),
    PART_COMPLETED(3, "部分完成"),
    CANCELED(4, "已取消"),
    REJECTED(5, "已拒绝");

    @JsonValue
    @EnumValue
    Integer code;
    String name;

}
